<%@ Page Language="C#" MasterPageFile="~/Pages/MasterPage.master" AutoEventWireup="true" CodeFile="OrderDetail.aspx.cs" Inherits="Pages_OrderDetail" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
        .style1
        {
        	border-bottom:solid 1px gray;
        	text-align:left;
        }
        
        .style2
        {
            width: 111px;
            border-bottom:solid 1px gray;
            text-align:left;
        }
    </style>
    <title>Imagevn upload and printing pro</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="titleClient">
<h1>Order Detail</h1>
</div>
<div class="contentClient">
    <div id="MainContent">
    <div style="text-align:center; padding:10px; margin:0px auto; width:800px">
    <center>
    <table style="width:800px; margin:0px auto" cellpadding="3" cellspacing="0">
        <tr>
            <td class="style2">
                Order No:
            </td>
            <td colspan="3" class="style1">
                <asp:Label ID="lblOrderID" runat="server" Text=""></asp:Label>
                
            </td>
        </tr>
        <tr>
            <td class="style2">
                Date send:</td>
            <td colspan="3" class="style1">
                <asp:Label ID="lblDate" runat="server" Text=""></asp:Label>
                </td>
        </tr>
        <tr>
            <td class="style2">
                Name:</td>
            <td colspan="3" class="style1">
                <asp:Label ID="lblName" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td class="style2">
                Phone:</td>
            <td colspan="3" class="style1">
                <asp:Label ID="lblPhone" runat="server" Text=""></asp:Label></td>
        </tr>
        <tr>
            <td class="style2">
                Address:</td>
            <td colspan="3" class="style1">
                <asp:TextBox ID="lblAddress" runat="server" TextMode="MultiLine" 
                    BackColor="#EFEFEF" BorderWidth="0px" Height="41px" ReadOnly="True" 
                    Width="225px" Font-Bold="True" Font-Size="10pt"></asp:TextBox></td>
        </tr>
        <tr>
            <td class="style2">
                Payment Method:</td>
            <td colspan="3" class="style1">
                <asp:Label ID="lblPaymentMethod" runat="server"></asp:Label></td>
        </tr>
        <tr>
            <td class="style2">
                Order Status:</td>
            <td colspan="3" class="style1">
                <asp:CheckBox ID="chkReject" runat="server" Text="Reject" AutoPostBack="True" 
                    oncheckedchanged="chkReject_CheckedChanged" />
                <asp:Label ID="lblStatus" runat="server" Visible="False"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td colspan="3" class="style1">
                <asp:Button ID="Button1" runat="server" Text="Change order status" 
                    onclick="Button1_Click" />
               
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td  colspan="4" style="text-align:left">
                <asp:GridView ID="gvOrderDetail" runat="server" AutoGenerateColumns="false" OnRowCreated="gvOrderDetail_RowCreated">
                <Columns>
                    <asp:BoundField HeaderText="Image Name" DataField="I_Name" HeaderStyle-Width="80px"/>
                    <asp:TemplateField HeaderText="Image" HeaderStyle-Width="50px">
                        <ItemTemplate>
                            <img alt="" src='../<%# Eval("I_URL") %>' width="40" height="40px"/>

                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField HeaderText="Size" DataField="Size_Name" HeaderStyle-Width="100px"/>
                    <asp:BoundField HeaderText="Quantity" DataField="Quantity" HeaderStyle-Width="70px"/>
                    <asp:BoundField HeaderText="Price" DataField="Price" HeaderStyle-Width="70px"/>
                    <asp:TemplateField HeaderText="Total" HeaderStyle-Width="80px">
                        <ItemTemplate>
                            <%# CalTotal(Eval("Price").ToString(),Eval("Quantity").ToString()) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td colspan="4" style="text-align:left; padding:5px">
                 <asp:Button ID="btnBack" runat="server" onclick="btnBack_Click" Text="Back" />
            </td>
        </tr>
    </table>
     </center>
    </div>
    </div>
    </div>
</asp:Content>

